.class Lcom/opongo/blogapp/activities/ShoutBoxActivity$1;
.super Landroid/webkit/WebViewClient;
.source "ShoutBoxActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/ShoutBoxActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/ShoutBoxActivity;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/ShoutBoxActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/ShoutBoxActivity$1;->this$0:Lcom/opongo/blogapp/activities/ShoutBoxActivity;

    .line 58
    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 4
    .parameter "view"
    .parameter "url"

    .prologue
    .line 94
    iget-object v0, p0, Lcom/opongo/blogapp/activities/ShoutBoxActivity$1;->this$0:Lcom/opongo/blogapp/activities/ShoutBoxActivity;

    const/4 v1, 0x0

    #setter for: Lcom/opongo/blogapp/activities/ShoutBoxActivity;->refreshBox:Z
    invoke-static {v0, v1}, Lcom/opongo/blogapp/activities/ShoutBoxActivity;->access$4(Lcom/opongo/blogapp/activities/ShoutBoxActivity;Z)V

    .line 96
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "javascript:{var user_name = document.getElementById(\'name\'); user_name.value = \'"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 97
    iget-object v1, p0, Lcom/opongo/blogapp/activities/ShoutBoxActivity$1;->this$0:Lcom/opongo/blogapp/activities/ShoutBoxActivity;

    #getter for: Lcom/opongo/blogapp/activities/ShoutBoxActivity;->settings:Landroid/content/SharedPreferences;
    invoke-static {v1}, Lcom/opongo/blogapp/activities/ShoutBoxActivity;->access$5(Lcom/opongo/blogapp/activities/ShoutBoxActivity;)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "edit_name"

    const-string v3, "Gast"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\';};"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 96
    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 98
    return-void
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 1
    .parameter "view"
    .parameter "urlString"

    .prologue
    .line 89
    const/4 v0, 0x1

    return v0
.end method
